body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}
html{
    scroll-behavior: smooth;
}
.timeline {
    position: relative;
    margin: 50px auto;
    padding: 10px 0;
    max-width: 800px;
}

.event {
    position: relative;
    margin-bottom: 50px;
    opacity: 0; /* Initial opacity for animation */
    transform: translateY(20px); /* Initial position for animation */
    animation: dropIn 0.5s ease-out forwards;
    display: flex;
    justify-content: flex-end; /* Default to align content to the right */
    align-items: center;
}

.event:nth-child(odd) {
    justify-content: flex-start; /* Odd events aligned to the left */
}

.event:nth-child(even) {
    justify-content: flex-end; /* Even events aligned to the right */
}

.event:nth-child(1) {
    animation-delay: 0s;
}

.event:nth-child(2) {
    animation-delay: 0.2s;
}

.event:nth-child(3) {
    animation-delay: 0.4s;
}

.event:nth-child(4) {
    animation-delay: 0.6s;
}

.year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #d32f2f;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.content {
    display: flex;
     align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    color: #333;
    position: relative;
    max-width: 300px;
}


@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


#bottom {
    background-color: #03172b;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}
#bottom h1 {
    color: #007bff;
}
#bottom p {
    font-size: 18px;
    color: #333;
}
